1ef7b93bf1650995c21080bf26c26b9345352c4b,src/main/java/com/tesco/mewbase/doc/impl/inmem/InMemoryDocManager.java,InMemoryDocManager,getByID,#String#String#,35
Before Change
// TODO should we return success with result null in this case?
cfResult.complete(null);
} else {
cfResult.complete(doc);
}
return cfResult;
}
After Change
Binder binder = getOrCreateBinder(binderName);
CompletableFuture<BsonObject> cfResult = new CompletableFuture<>();
BsonObject doc = binder.getDocument(id);
cfResult.complete(doc);
return cfResult;
}